var express = require('express');
var router = express.Router();
const { login } = require('../service/loginsService')

router.post('/login', async (req, res, next) => {
    const { identity, account, password } = req.body;
    console.log(req.body);
    res.send(await login({ identity, account, password }))
});

module.exports = router;
